/*
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2014
 *
 * fileName:  Searcher.java
 * author:  lei
 * Company:  Cloudland Studio
 * Createdate:  2013-9-19 下午9:19:16
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2013-9-19          Lei            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.search;

import org.cloudland.search.handler.IndexRead;
import org.cloudland.search.handler.IndexWrite;

 /**
 * <pre> 
 * 索引操作对象，提供获取索引的读、写及名称方法。<br>
 * </pre>
 * @ClassName  Searcher
 * @author  lei
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public interface Searcher {

	/** 
	 * 获取索引操作对象名称。<br>
	 *
	 * @return 索引名称
	 */
	String getName();
	
	/** 
	 * 获取写入索引操作名称。<br>
	 *
	 * @return 写索引操作接口
	 */
	IndexWrite getWriter();
	
	/** 
	 * 获取读取索引操作接口。<br>
	 *
	 * @return 读索引操作接口
	 */
	IndexRead getReader();
	
}
